export class Role {
	public hasRole(name: string) {
		return this.roles.indexOf(name) >= 0;
	}

	public grant(name: string) {
		this.roles.push(name);
	}

	public revoke(name: string) {
		this.roles.splice(this.roles.indexOf(name), 1);
	}

	private roles: Array<string> = [];
}
